home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / fontutil.6 / fontutil / fontutils-0.6 / imageto / README < prev    next >
Encoding:
Text File  |  1992-08-14  |  2.2 KB  |  47 lines

  1. This program extracts the characters from a big image to a GF font file.
  2. Information about the image is given in an ``image font information''
  3. (IFI) file; that file format is described in the documentation.
  4.  
  5. Currently the program can read the IMG files output by the Scan7650
  6. software, which works with the fancy Xerox 9750 scanner.  (I think IMG
  7. output is used by other GEM applications as well.)  These images are
  8. used by the Interleaf desktop publishing program.  The image format
  9. isn't proprietary, though -- it doesn't have any novel features.  The
  10. message below describes the format.
  11.  
  12. It can also read PBM files.
  13.  
  14.  
  15. Date: Thu, 5 Jul 90 11:22:55 EDT
  16. From: rgw@hq.ileaf.com (Bob Watkins x5545)
  17. To: karl@cs.umb.edu
  18.  
  19. The image file consists of an OPSHEADER followed by an IMGHEADER, followed
  20. by raster data.  The version field of the OPSHEADER determines which of the
  21. IMGHEADER structures to use.  Most likely this will be 2, but there is a
  22. chance that it might be 1 -- it depends on how recently the software for
  23. that scanner was written.
  24.  
  25. When reading the headers structures, it is a good idea to read them a field
  26. at a time rather than all at once, since not all compilers use the same
  27. structure padding conventions.
  28.  
  29. The resolution numbers are in pixels/inch.  Their primary purpose is to
  30. allow TPS to scale the image to the correct physical dimensions when it is
  31. pasted into the document.  Other than that, they aren't that useful.
  32.  
  33. The flags field should be zero -- there is a stupid marketing reason why it
  34. is there at all, but I won't go into that.
  35.  
  36. The w and h fields are the width and height of the image in pixels; the d
  37. field is the depth in bits/pixel.  The depth is either 1 or 8, depending on
  38. whether the image is a lineart image or a contone image.
  39.  
  40. The format field specifies the encoding of the raster data.  A format of 0
  41. means that the data is uncompressed.  The data itself is stored in scanline-
  42. major order.  In the case of lineart image, 8 pixels are packed into each
  43. byte, with most-to-least significant order within the byte representing left-
  44. to-right order in the image.  A 0 bit corresponds to a black pixel, and a 1
  45. bit corresponds to a white pixel.  If necessary, the scanlines are padded out
  46. to the next 16-bit boundary.
  47.